﻿using Frogsoft.Domain.Permission;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Frogsoft.Data
{
    public class MyContext : IdentityDbContext<AppUser>
    { 
        public MyContext(DbContextOptions<MyContext> options)
        : base(options)
        {
        }
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            //必须执行父类的方法，否则会报错
            base.OnModelCreating(modelBuilder);
        }
    }
}
